Woocommerce\Pagarme\Model\Subscription A

Total Complexity 57
Dependencies 15
Dependents 4
Total lines 388
Lines of code 282
Logical lines of code 144
Comment lines 39
Methods 25
Properties 3

Methods 25

Method Rating Maintainability Complexity Lines of code
processSubscription()
S
49 4 34
addSupportToSubscription()
S
49 3 36
processFreeTrialSubscription()
S
50 3 29
createCreditCard()
S
58 4 14
getRecurrenceCycle()
S
63 4 12
processChangePaymentSubscription()
S
51 3 27
convertOrderObject()
S
58 2 15
getCardDataByResponse()
S
59 2 15
setPaymentEnabled()
S
73 3 5
addMetaDataCard()
S
65 3 9
hasSubscriptionProductInCart()
S
70 3 6
isChangePaymentSubscription()
S
68 2 7
hasSubscriptionFreeTrial()
S
71 2 6
getCardDataByTransaction()
S
72 2 6
getTransactionsByCharges()
S
71 2 6
__construct()
S
65 2 10
getChargesByResponse()
S
71 2 6
getCardSubscriptionData()
S
68 2 7
getPagarmeCustomer()
S
67 2 8
canUpdatePaymentMethod()
S
71 2 6
formatPaymentMethod()
S
74 1 4
saveCardInSubscription()
S
75 1 4
addMetaDataCardByResponse()
S
75 1 4
hasSubscriptionPlugin()
S
80 1 3
getConfig()
S
82 1 3